]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
workspacesView: Work around spurious allocation changes
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 12 Jul 2019 03:26:51 +0000 (03:26 +0000)
committerFlorian Müllner <fmuellner@gnome.org>
Fri, 12 Jul 2019 14:48:03 +0000 (16:48 +0200)
For some reason, people are still seeing those after commit d5ebd8c8.
While this is something we really should figure out, we can work around
the issue by keeping the view actors hidden until the update is complete.

https://gitlab.gnome.org/GNOME/gnome-shell/issues/1065

js/ui/workspacesView.js

index 7aa976ef389aa04b8588560f13f5ff0f6c9165bc..1cae5761d40e7697e199948d33c4150c0ea21ce1 100644 (file)
@@ -638,10 +638,15 @@ var WorkspacesDisplay = class {
                                                this._scrollValueChanged.bind(this));
             }
 
+            // HACK: Avoid spurious allocation changes while updating views
+            view.actor.hide();
+
             this._workspacesViews.push(view);
             Main.layoutManager.overviewGroup.add_actor(view.actor);
         }
 
+        this._workspacesViews.forEach(v => v.actor.show());
+
         this._updateWorkspacesFullGeometry();
         this._updateWorkspacesActualGeometry();
     }